package br.com.Word.View;

import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.Timer;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author alexandre
 */
public class JPInterface extends javax.swing.JPanel {

    /**
     * Creates new form NewJPanel2
     */
    public JPInterface() {
        initComponents();
        jLDialog.setVisible(true);
        jLDialog1.setVisible(false);
        jLDialog2.setVisible(false);
        jLMenu.setVisible(false);
        jLDialog3.setVisible(false);
        jLDialog4.setVisible(false);
        jLDialog5.setVisible(false);
        jLMPerson.setVisible(false);
        jLAquivos.setVisible(false);
        jLCabeçario.setText("<html>No cabeçalho  temos a barra de títulos do documento,"
                + "que como é um novo documento apresenta como título “Documento1”."
                + "Clique nos numeros para navegar.</html>");

    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLFechar = new javax.swing.JLabel();
        jLDialog = new javax.swing.JLabel();
        jLDialog1 = new javax.swing.JLabel();
        jLDialog2 = new javax.swing.JLabel();
        jLDialog3 = new javax.swing.JLabel();
        jLDialog4 = new javax.swing.JLabel();
        jLDialog5 = new javax.swing.JLabel();
        jLMenu = new javax.swing.JLabel();
        jLCabeçario = new javax.swing.JLabel();
        jLAquivos = new javax.swing.JLabel();
        jL1 = new javax.swing.JLabel();
        jL2 = new javax.swing.JLabel();
        jL3 = new javax.swing.JLabel();
        jL4 = new javax.swing.JLabel();
        jL5 = new javax.swing.JLabel();
        jL6 = new javax.swing.JLabel();
        jL7 = new javax.swing.JLabel();
        jLMPerson = new javax.swing.JLabel();
        jLCXTexto = new javax.swing.JLabel();
        jLTelaWord = new javax.swing.JLabel();

        setBackground(new java.awt.Color(255, 255, 0));
        setMaximumSize(new java.awt.Dimension(543, 360));
        setMinimumSize(new java.awt.Dimension(543, 360));
        addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                formFocusLost(evt);
            }
        });
        setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jLFechar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/Word/imagen/Fechar.png"))); // NOI18N
        jLFechar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLFecharMouseClicked(evt);
            }
        });
        add(jLFechar, new org.netbeans.lib.awtextra.AbsoluteConstraints(990, 0, -1, -1));

        jLDialog.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 0, 0)));
        add(jLDialog, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 0, 220, 20));

        jLDialog1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 51, 0)));
        add(jLDialog1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 80, 20));

        jLDialog2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 0, 0)));
        add(jLDialog2, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 0, 20, 20));

        jLDialog3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 51, 0)));
        add(jLDialog3, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 20, 80, 20));

        jLDialog4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 51, 0)));
        add(jLDialog4, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 40, 200, 70));

        jLDialog5.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 51, 0)));
        add(jLDialog5, new org.netbeans.lib.awtextra.AbsoluteConstraints(340, 40, 180, 70));

        jLMenu.setFont(new java.awt.Font("Arial", 3, 11)); // NOI18N
        jLMenu.setForeground(new java.awt.Color(255, 0, 0));
        jLMenu.setText("Clique aqui para voltar ao menu.");
        add(jLMenu, new org.netbeans.lib.awtextra.AbsoluteConstraints(540, 530, 270, 20));

        jLCabeçario.setFont(new java.awt.Font("Batang", 3, 12)); // NOI18N
        jLCabeçario.setForeground(new java.awt.Color(255, 51, 51));
        jLCabeçario.setText("jl");
        add(jLCabeçario, new org.netbeans.lib.awtextra.AbsoluteConstraints(460, 400, 390, 120));

        jLAquivos.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/Word/imagen/Arquivo.png"))); // NOI18N
        jLAquivos.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 0, 0)));
        add(jLAquivos, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 20, 110, 460));

        jL1.setForeground(new java.awt.Color(255, 0, 0));
        jL1.setText("1");
        add(jL1, new org.netbeans.lib.awtextra.AbsoluteConstraints(460, 530, 10, -1));

        jL2.setForeground(new java.awt.Color(255, 0, 0));
        jL2.setText("2");
        add(jL2, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 530, 10, -1));

        jL3.setForeground(new java.awt.Color(255, 0, 0));
        jL3.setText("3");
        add(jL3, new org.netbeans.lib.awtextra.AbsoluteConstraints(480, 530, 10, -1));

        jL4.setForeground(new java.awt.Color(255, 0, 0));
        jL4.setText("4");
        add(jL4, new org.netbeans.lib.awtextra.AbsoluteConstraints(490, 530, 10, -1));

        jL5.setForeground(new java.awt.Color(255, 0, 0));
        jL5.setText("5");
        add(jL5, new org.netbeans.lib.awtextra.AbsoluteConstraints(500, 530, 10, -1));

        jL6.setForeground(new java.awt.Color(255, 0, 0));
        jL6.setText("6");
        add(jL6, new org.netbeans.lib.awtextra.AbsoluteConstraints(510, 530, 10, -1));

        jL7.setForeground(new java.awt.Color(255, 0, 0));
        jL7.setText("7");
        add(jL7, new org.netbeans.lib.awtextra.AbsoluteConstraints(520, 530, 10, -1));

        jLMPerson.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/Word/imagen/Menu Personal.png"))); // NOI18N
        add(jLMPerson, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, -3, -1, 350));

        jLCXTexto.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/Word/imagen/Fundo.jpg"))); // NOI18N
        jLCXTexto.setText("jLabel1");
        jLCXTexto.setBorder(javax.swing.BorderFactory.createEtchedBorder(new java.awt.Color(255, 0, 0), new java.awt.Color(255, 0, 0)));
        add(jLCXTexto, new org.netbeans.lib.awtextra.AbsoluteConstraints(450, 390, 410, 160));

        jLTelaWord.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/Word/imagen/Tela 1024.png"))); // NOI18N
        add(jLTelaWord, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, -80, -1, 760));
    }// </editor-fold>//GEN-END:initComponents

    private void jLFecharMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLFecharMouseClicked
        // TODO add your handling code here:
        
    }//GEN-LAST:event_jLFecharMouseClicked

    private void formFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_formFocusLost
        // TODO add your handling code here:
    removeAll();
    }//GEN-LAST:event_formFocusLost


    // Variables declaration - do not modify//GEN-BEGIN:variables
    public javax.swing.JLabel jL1;
    public javax.swing.JLabel jL2;
    public javax.swing.JLabel jL3;
    public javax.swing.JLabel jL4;
    public javax.swing.JLabel jL5;
    public javax.swing.JLabel jL6;
    public javax.swing.JLabel jL7;
    public javax.swing.JLabel jLAquivos;
    public javax.swing.JLabel jLCXTexto;
    public javax.swing.JLabel jLCabeçario;
    public javax.swing.JLabel jLDialog;
    public javax.swing.JLabel jLDialog1;
    public javax.swing.JLabel jLDialog2;
    public javax.swing.JLabel jLDialog3;
    public javax.swing.JLabel jLDialog4;
    public javax.swing.JLabel jLDialog5;
    private javax.swing.JLabel jLFechar;
    public javax.swing.JLabel jLMPerson;
    public javax.swing.JLabel jLMenu;
    public javax.swing.JLabel jLTelaWord;
    // End of variables declaration//GEN-END:variables

    public void Piscar() {
        Timer t = new Timer(300, new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent ae) {
                if (jLDialog.isVisible() == true) {
                    jLDialog.setVisible(false);
                    jLDialog.setBackground(Color.RED); //Muda a cor do fundo  
                    jLDialog.setForeground(Color.RED); //Mudar a cor do texto
                } else {

                    jLDialog.setVisible(true);

                }

            }

        });
        t.start();
    }
}
